#pragma once
#include <wx/wx.h>
#include <wx/wxsqlite3.h>
#include <wx/dynarray.h>

#include "dictdb/dictdbquery.h"

WX_DECLARE_OBJARRAY(DictDBQuery*, DictDBQueryPtrArray);


class DictPackManager {
    public:
        DictPackManager();
        ~DictPackManager();
        
        bool get_candidate_words(const wxString& word, wxArrayString& words, int limit);
        
        bool connect_dictpacks();
        int disconnect_dictpacks();
        int reconnect_dictpacks();
        
    protected:
        wxSQLite3Database _mgrdb;
        
        wxString sql_fuzzy_query_word;
        DictDBQueryPtrArray _dictdbquery_ptr_a;
};
